package com.ruoyi.datastatistics.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.*;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 欠费明细对象 t_bill
 *
 * @author zt
 * @date 2025-05-27
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class BillBo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 日期(当月第一天~结算日期bill_end_time) */
    @Excel(name = "日期",sort = 1,width = 50)
    private String freezeDate;

    /** 用户编号 */
    @Excel(name = "用户编号",sort = 2)
    @TableField("user_id")
    private String userId;

    /** 用户编号 */
    @Excel(name = "用户名称",sort = 3 ,width = 60)
    @TableField("user_name")
    private String userName;

    @Excel(name = "水单价",sort = 4)
    private String unitPriceW;

    @Excel(name = "电单价",sort = 5)
    private String unitPriceE;

    /** 账单日期 */
    @Excel(name = "冻结月",sort = 6)
    @TableField("read_date")
    private String readDate;

    @Excel(name = "水用量",sort = 7)
    @TableField("count_w")
    private BigDecimal countW;

    @Excel(name = "电用量",sort = 8)
    @TableField("count_e")
    private BigDecimal countE;

    @Excel(name = "水公摊用量",sort = 9)
    @TableField("count_pub_w")
    private BigDecimal countPubW;

    @Excel(name = "电公摊用量",sort = 10)
    @TableField("count_pub_e")
    private BigDecimal countPubE;

    @Excel(name = "水费用",sort = 11)
    @TableField("cost_w")
    private BigDecimal costW;

    @Excel(name = "电费用",sort = 12)
    @TableField("cost_e")
    private BigDecimal costE;

    @Excel(name = "水公摊费用",sort = 13)
    @TableField("cost_w_pub")
    private BigDecimal costWPub;

    @Excel(name = "电公摊费用",sort = 14)
    @TableField("cost_e_pub")
    private BigDecimal costEPub;

    @Excel(name = "合计金额（元）",sort = 15,isStatistics = true)
    @TableField("cost_total")
    private BigDecimal costTotal;

}
